﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace XEvents.Library
{
    [Serializable]
    public class Action : XEObjectBase
    {
        #region Constructor

        internal Action(dm_xe_object obj, SqlServer server)
            : base(obj, server)
        { }

        private Action()
            : base(null)
        { }

        #endregion

        #region Public Properties
        /// <summary>
        /// ReturnType
        /// </summary>
        public Type Type
        {
            get
            {
                return (from t in Server.MetaData.Types
                        where t.name == this.type_name && t.package_guid == this.type_package_guid
                        select t).ElementAtOrDefault(0);
            }
        }
        #endregion
    }
}
